package com.zbkj.crmeb.store.dto;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;

/**
 * 喜洋洋商品sku映射
 * @Description: 
 * @author daigb
 * @date 2021-06-02
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class XyyProductSkuResDTO {

    /**
     * skuid
     */
    @JsonProperty(value = "spec_id")
    private String specId;

    /**
     * skuid
     */
    @JsonProperty(value = "goods_id")
    private Integer goodsId;

    /**
     * 尺码id
     */
    @JsonProperty(value = "size_id")
    private String sizeId;

    /**
     * 尺码名称
     */
    @JsonProperty(value = "size_name")
    private String sizeName;

    /**
     * 库存
     */
    @JsonProperty(value = "stock")
    private Integer stock;

    /**
     * 商品,名称
     */
    @JsonProperty(value = "goods_name")
    private String goodsName;

    /**
     * 商品keyword
     */
    @JsonProperty(value = "goods_sn")
    private String goodsSn;

    /**
     * 是否上架
     */
    @JsonProperty(value = "is_on_sale")
    private Integer isOnSale;

    /**
     * 分类id
     */
    @JsonProperty(value = "cate_id")
    private String cateId;

    /**
     * 分类名称
     */
    @JsonProperty(value = "cate_name")
    private String cateName;

    /**
     * 品牌id
     */
    @JsonProperty(value = "brand_id")
    private String brandId;

    /**
     * 品牌名称
     */
    @JsonProperty(value = "brand_name")
    private String brandName;

    /**
     * 色号
     */
    @JsonProperty(value = "sehao")
    private String sehao;

    /**
     * 面料
     */
    @JsonProperty(value = "mianliao")
    private String mianliao;

    /**
     * 是否期货
     */
    @JsonProperty(value = "t_qihuo_stock")
    private Integer tQihuoStock;

    /**
     * 请求结果
     */
    @JsonProperty(value = "t_storhouse")
    private List<TStorhouse> tStorhouses;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class TStorhouse {

        /**
         * skuid
         */
        @JsonProperty(value = "spec_id")
        private String specId;

        /**
         * 发货地id
         */
        @JsonProperty(value = "sh_id")
        private String shId;

        /**
         * 发货地名称
         */
        @JsonProperty(value = "sh_name")
        private String shName;

        /**
         * 库存
         */
        @JsonProperty(value = "stock")
        private Integer stock;

        /**
         * 是否期货
         */
        @JsonProperty(value = "qihuo_stock")
        private Integer qihuoStock;

        /**
         * 是否现货
         */
        @JsonProperty(value = "xianhuo_stock")
        private Integer xianhuoStock;
    }

}
